package objects;

import java.util.ArrayList;
import java.util.List;

public class MurderableRoom extends Containable{
	
	private Room room;
	private List<Weapon> weapons;
	
	public MurderableRoom(List<Player> players, Room room, Weapon weapon)
	{
		super(players); 
		this.room = room;
		weapons = new ArrayList<Weapon>();
		
		if (weapon != null)
		{
			weapons.add(weapon);
		}
	}
	
	public boolean isWeaponIn(Weapon weapon)
	{
		return (weapons.contains(weapon));
	}
	
	public void addWeapon(Weapon weapon)
	{
		weapons.add(weapon);
	}
	
	public void removeWeapon(Weapon weapon)
	{
		weapons.remove(weapon);
	}
	
	public void addPlayer(Player player)
	{
		players.add(player);
	}

	public Room getRoom() {
		return room;
	}

	public List<Weapon> getWeapons() {
		return weapons;
	}

	public void setWeapons(List<Weapon> weapons) {
		this.weapons = weapons;
	}
	
}
